package com.bootdo.project.service.impl;

import com.bootdo.project.domain.TNotice;
import com.bootdo.project.dao.TNoticeMapper;
import com.codegen.vo.Page;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import org.apache.ibatis.annotations.Param;

/**
 *
 * Created by xxxx on 2019/03/19.
 */
@Service
public class TNoticeService {

	@Autowired
    private TNoticeMapper tNoticeMapper;
    
    public int deleteByPrimaryKey(Integer id){
        return tNoticeMapper.deleteByPrimaryKey(id);
    }

    public int insert(TNotice record){
        return tNoticeMapper.insert(record);
    }

    public int insertSelective(TNotice record){
        return tNoticeMapper.insertSelective(record);
    }

    public TNotice selectByPrimaryKey(Integer id){
        return tNoticeMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(TNotice record){
        return tNoticeMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(TNotice record){
        return tNoticeMapper.updateByPrimaryKey(record);
    }

    public List<TNotice> selectByCondition(TNotice record){
        return tNoticeMapper.selectByCondition(record);
    }

    public List<TNotice> selectAll(){
        return tNoticeMapper.selectAll();
    }

    public List<TNotice> selectByPage(Page<TNotice> page){
        return tNoticeMapper.selectByPage(page);
    }

    public Integer count(TNotice record){
        return tNoticeMapper.count(record);
    }

    public int deleteByCondition(TNotice record){
        return tNoticeMapper.deleteByCondition(record);
    }

}
